package hrms.dao;

import hrms.entity.Sort;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface SortMapper {
    int deleteByPrimaryKey(Integer id);

    int insert(Sort record);

    Sort selectByPrimaryKey(Integer id);

    List<Sort> selectAll();

    int updateByPrimaryKey(Sort record);

    Sort selectByName(@Param("name") String name);
}